package com.hp.dao;

import com.hp.entity.ResourcesType;
import com.hp.result.DataGridResultInfo;

import java.util.List;

/**
 * 资源类型接口
 */
public interface ResourcesTypeDao{

    public List<ResourcesType>  findAllByParentIsNotNull() throws Exception;

    public List<ResourcesType>  getAll();       //查询所有

    public  ResourcesType findByParentIsNull() throws Exception;

    public void savatype(ResourcesType resourcesType)throws Exception;

    public ResourcesType findTypeById(String id)throws Exception;

    public void updataType(ResourcesType resourcesType)throws Exception;

    public void deleteTypeById(String id) throws  Exception;

    public ResourcesType getParent()throws Exception ;

    public void findAllByIdAndIsY(String typeid);
}